Package nz.ac.massey.softwarec.group3.actions

Source Code of nz.ac.massey.softwarec.group3.actions.ActionPerformerInterfaceTest

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nz.ac.massey.softwarec.group3.actions;

import javax.servlet.http.HttpSession;
import nz.ac.massey.softwarec.group3.game.Game;
import nz.ac.massey.softwarec.group3.game.Player;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author wanting
*/
public class ActionPerformerInterfaceTest {
   
    public ActionPerformerInterfaceTest() {
    }
    HttpSession session;
   
    @Before
    public void setUp() {
    }
   
    @After
    public void tearDown() {
    }

    /**
     * Test of performAction method, of class ActionPerformerInterface.
     */
    @Test
    public void testPerformAction() {
        System.out.println("performAction");
       
     
       Player  player=new Player(5,5,5,false);
       Game game=new Game("username",001);
       Action action=new Action(player,"action","value",game,session);
       
        ActionPerformerInterface instance = new ActionPerformerInterfaceImpl();
        instance.performAction(action);

    }

    public class ActionPerformerInterfaceImpl implements ActionPerformerInterface {

        public void performAction(Action action) {
        }
    }
}
TOP

Related Classes of nz.ac.massey.softwarec.group3.actions.ActionPerformerInterfaceTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.